package com.shopping_back.pojo.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 支付记录表
 * </p>
 *
 * @author Jack
 * @since 2025-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("payment_record")
public class PaymentRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 支付ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联订单号
     */
    private String orderSn;

    /**
     * 支付流水号
     */
    private String paySn;

    /**
     * 支付金额
     */
    private BigDecimal payAmount;

    /**
     * 支付渠道
     */
    private String payChannel;

    /**
     * 三方交易号
     */
    private String transactionId;

    /**
     * 状态(0待支付 1支付成功 2支付失败)
     */
    private Boolean status;

    /**
     * 回调原始数据
     */
    private String callbackData;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


}
